Optimal. Leaf size=229 \[ -\frac {(8 A-21 B) x}{2 a^4}+\frac {8 (83 A-216 B) \sin (c+d x)}{105 a^4 d}-\frac {(8 A-21 B) \cos (c+d x) \sin (c+d x)}{2 a^4 d}+\frac {(52 A-129 B) \cos ^3(c+d x) \sin (c+d x)}{105 a^4 d (1+\cos (c+d x))^2}+\frac {4 (83 A-216 B) \cos ^2(c+d x) \sin (c+d x)}{105 a^4 d (1+\cos (c+d x))}+\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {(A-2 B) \cos ^4(c+d x) \sin (c+d x)}{5 a d (a+a \cos (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.41, antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {3056, 2813}
\begin {gather*} \frac {8 (83 A-216 B) \sin (c+d x)}{105 a^4 d}+\frac {(52 A-129 B) \sin (c+d x) \cos ^3(c+d x)}{105 a^4 d (\cos (c+d x)+1)^2}+\frac {4 (83 A-216 B) \sin (c+d x) \cos ^2(c+d x)}{105 a^4 d (\cos (c+d x)+1)}-\frac {(8 A-21 B) \sin (c+d x) \cos (c+d x)}{2 a^4 d}-\frac {x (8 A-21 B)}{2 a^4}+\frac {(A-B) \sin (c+d x) \cos ^5(c+d x)}{7 d (a \cos (c+d x)+a)^4}+\frac {(A-2 B) \sin (c+d x) \cos ^4(c+d x)}{5 a d (a \cos (c+d x)+a)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2813
Rule 3056
Rubi steps
\begin {align*} \int \frac {\cos ^5(c+d x) (A+B \cos (c+d x))}{(a+a \cos (c+d x))^4} \, dx &=\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {\int \frac {\cos ^4(c+d x) (5 a (A-B)-a (2 A-9 B) \cos (c+d x))}{(a+a \cos (c+d x))^3} \, dx}{7 a^2}\\ &=\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {(A-2 B) \cos ^4(c+d x) \sin (c+d x)}{5 a d (a+a \cos (c+d x))^3}+\frac {\int \frac {\cos ^3(c+d x) \left (28 a^2 (A-2 B)-a^2 (24 A-73 B) \cos (c+d x)\right )}{(a+a \cos (c+d x))^2} \, dx}{35 a^4}\\ &=\frac {(52 A-129 B) \cos ^3(c+d x) \sin (c+d x)}{105 a^4 d (1+\cos (c+d x))^2}+\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {(A-2 B) \cos ^4(c+d x) \sin (c+d x)}{5 a d (a+a \cos (c+d x))^3}+\frac {\int \frac {\cos ^2(c+d x) \left (3 a^3 (52 A-129 B)-a^3 (176 A-477 B) \cos (c+d x)\right )}{a+a \cos (c+d x)} \, dx}{105 a^6}\\ &=\frac {(52 A-129 B) \cos ^3(c+d x) \sin (c+d x)}{105 a^4 d (1+\cos (c+d x))^2}+\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {(A-2 B) \cos ^4(c+d x) \sin (c+d x)}{5 a d (a+a \cos (c+d x))^3}+\frac {4 (83 A-216 B) \cos ^2(c+d x) \sin (c+d x)}{105 d \left (a^4+a^4 \cos (c+d x)\right )}+\frac {\int \cos (c+d x) \left (8 a^4 (83 A-216 B)-105 a^4 (8 A-21 B) \cos (c+d x)\right ) \, dx}{105 a^8}\\ &=-\frac {(8 A-21 B) x}{2 a^4}+\frac {8 (83 A-216 B) \sin (c+d x)}{105 a^4 d}-\frac {(8 A-21 B) \cos (c+d x) \sin (c+d x)}{2 a^4 d}+\frac {(52 A-129 B) \cos ^3(c+d x) \sin (c+d x)}{105 a^4 d (1+\cos (c+d x))^2}+\frac {(A-B) \cos ^5(c+d x) \sin (c+d x)}{7 d (a+a \cos (c+d x))^4}+\frac {(A-2 B) \cos ^4(c+d x) \sin (c+d x)}{5 a d (a+a \cos (c+d x))^3}+\frac {4 (83 A-216 B) \cos ^2(c+d x) \sin (c+d x)}{105 d \left (a^4+a^4 \cos (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(555\) vs. \(2(229)=458\).
time = 1.31, size = 555, normalized size = 2.42 \begin {gather*} \frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec \left (\frac {c}{2}\right ) \left (-14700 (8 A-21 B) d x \cos \left (\frac {d x}{2}\right )-14700 (8 A-21 B) d x \cos \left (c+\frac {d x}{2}\right )-70560 A d x \cos \left (c+\frac {3 d x}{2}\right )+185220 B d x \cos \left (c+\frac {3 d x}{2}\right )-70560 A d x \cos \left (2 c+\frac {3 d x}{2}\right )+185220 B d x \cos \left (2 c+\frac {3 d x}{2}\right )-23520 A d x \cos \left (2 c+\frac {5 d x}{2}\right )+61740 B d x \cos \left (2 c+\frac {5 d x}{2}\right )-23520 A d x \cos \left (3 c+\frac {5 d x}{2}\right )+61740 B d x \cos \left (3 c+\frac {5 d x}{2}\right )-3360 A d x \cos \left (3 c+\frac {7 d x}{2}\right )+8820 B d x \cos \left (3 c+\frac {7 d x}{2}\right )-3360 A d x \cos \left (4 c+\frac {7 d x}{2}\right )+8820 B d x \cos \left (4 c+\frac {7 d x}{2}\right )+243320 A \sin \left (\frac {d x}{2}\right )-539490 B \sin \left (\frac {d x}{2}\right )-184520 A \sin \left (c+\frac {d x}{2}\right )+386190 B \sin \left (c+\frac {d x}{2}\right )+184464 A \sin \left (c+\frac {3 d x}{2}\right )-422478 B \sin \left (c+\frac {3 d x}{2}\right )-72240 A \sin \left (2 c+\frac {3 d x}{2}\right )+132930 B \sin \left (2 c+\frac {3 d x}{2}\right )+77168 A \sin \left (2 c+\frac {5 d x}{2}\right )-181461 B \sin \left (2 c+\frac {5 d x}{2}\right )-8400 A \sin \left (3 c+\frac {5 d x}{2}\right )+3675 B \sin \left (3 c+\frac {5 d x}{2}\right )+15164 A \sin \left (3 c+\frac {7 d x}{2}\right )-36003 B \sin \left (3 c+\frac {7 d x}{2}\right )+2940 A \sin \left (4 c+\frac {7 d x}{2}\right )-9555 B \sin \left (4 c+\frac {7 d x}{2}\right )+420 A \sin \left (4 c+\frac {9 d x}{2}\right )-945 B \sin \left (4 c+\frac {9 d x}{2}\right )+420 A \sin \left (5 c+\frac {9 d x}{2}\right )-945 B \sin \left (5 c+\frac {9 d x}{2}\right )+105 B \sin \left (5 c+\frac {11 d x}{2}\right )+105 B \sin \left (6 c+\frac {11 d x}{2}\right )\right )}{6720 a^4 d (1+\cos (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 191, normalized size = 0.83
method | result | size |
derivativedivides | \(\frac {-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}+\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{7}+\frac {7 A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {9 B \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {23 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}+13 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B +49 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-111 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {16 \left (\left (-A +\frac {9 B}{2}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-A +\frac {7 B}{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-8 \left (8 A -21 B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{4}}\) | \(191\) |
default | \(\frac {-\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{7}+\frac {\left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B}{7}+\frac {7 A \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {9 B \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}-\frac {23 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) A}{3}+13 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) B +49 A \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-111 B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {16 \left (\left (-A +\frac {9 B}{2}\right ) \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-A +\frac {7 B}{2}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-8 \left (8 A -21 B \right ) \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{8 d \,a^{4}}\) | \(191\) |
risch | \(-\frac {4 x A}{a^{4}}+\frac {21 B x}{2 a^{4}}-\frac {i B \,{\mathrm e}^{2 i \left (d x +c \right )}}{8 a^{4} d}-\frac {i {\mathrm e}^{i \left (d x +c \right )} A}{2 a^{4} d}+\frac {2 i {\mathrm e}^{i \left (d x +c \right )} B}{a^{4} d}+\frac {i {\mathrm e}^{-i \left (d x +c \right )} A}{2 a^{4} d}-\frac {2 i {\mathrm e}^{-i \left (d x +c \right )} B}{a^{4} d}+\frac {i B \,{\mathrm e}^{-2 i \left (d x +c \right )}}{8 a^{4} d}+\frac {2 i \left (1050 A \,{\mathrm e}^{6 i \left (d x +c \right )}-2100 B \,{\mathrm e}^{6 i \left (d x +c \right )}+5250 A \,{\mathrm e}^{5 i \left (d x +c \right )}-11025 B \,{\mathrm e}^{5 i \left (d x +c \right )}+11900 A \,{\mathrm e}^{4 i \left (d x +c \right )}-25515 B \,{\mathrm e}^{4 i \left (d x +c \right )}+14840 A \,{\mathrm e}^{3 i \left (d x +c \right )}-32340 B \,{\mathrm e}^{3 i \left (d x +c \right )}+10794 A \,{\mathrm e}^{2 i \left (d x +c \right )}-23688 B \,{\mathrm e}^{2 i \left (d x +c \right )}+4298 A \,{\mathrm e}^{i \left (d x +c \right )}-9471 B \,{\mathrm e}^{i \left (d x +c \right )}+764 A -1653 B \right )}{105 d \,a^{4} \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )^{7}}\) | \(303\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 364, normalized size = 1.59 \begin {gather*} -\frac {3 \, B {\left (\frac {280 \, {\left (\frac {7 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {9 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}\right )}}{a^{4} + \frac {2 \, a^{4} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a^{4} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}} + \frac {\frac {3885 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {455 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {63 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {5 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{4}} - \frac {5880 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{4}}\right )} - A {\left (\frac {1680 \, \sin \left (d x + c\right )}{{\left (a^{4} + \frac {a^{4} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (d x + c\right ) + 1\right )}} + \frac {\frac {5145 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {805 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {147 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {15 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}}{a^{4}} - \frac {6720 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{4}}\right )}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.34, size = 238, normalized size = 1.04 \begin {gather*} -\frac {105 \, {\left (8 \, A - 21 \, B\right )} d x \cos \left (d x + c\right )^{4} + 420 \, {\left (8 \, A - 21 \, B\right )} d x \cos \left (d x + c\right )^{3} + 630 \, {\left (8 \, A - 21 \, B\right )} d x \cos \left (d x + c\right )^{2} + 420 \, {\left (8 \, A - 21 \, B\right )} d x \cos \left (d x + c\right ) + 105 \, {\left (8 \, A - 21 \, B\right )} d x - {\left (105 \, B \cos \left (d x + c\right )^{5} + 210 \, {\left (A - 2 \, B\right )} \cos \left (d x + c\right )^{4} + 4 \, {\left (592 \, A - 1509 \, B\right )} \cos \left (d x + c\right )^{3} + 4 \, {\left (1318 \, A - 3411 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (4472 \, A - 11619 \, B\right )} \cos \left (d x + c\right ) + 1328 \, A - 3456 \, B\right )} \sin \left (d x + c\right )}{210 \, {\left (a^{4} d \cos \left (d x + c\right )^{4} + 4 \, a^{4} d \cos \left (d x + c\right )^{3} + 6 \, a^{4} d \cos \left (d x + c\right )^{2} + 4 \, a^{4} d \cos \left (d x + c\right ) + a^{4} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 1085 vs.
\(2 (216) = 432\).
time = 9.28, size = 1085, normalized size = 4.74 \begin {gather*} \begin {cases} - \frac {3360 A d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {6720 A d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {3360 A d x}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {15 A \tan ^{11}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {117 A \tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {526 A \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {3682 A \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {11165 A \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {6825 A \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {8820 B d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {17640 B d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {8820 B d x}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {15 B \tan ^{11}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {159 B \tan ^{9}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} + \frac {1002 B \tan ^{7}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {9114 B \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {29505 B \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} - \frac {17535 B \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{840 a^{4} d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 1680 a^{4} d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 840 a^{4} d} & \text {for}\: d \neq 0 \\\frac {x \left (A + B \cos {\left (c \right )}\right ) \cos ^{5}{\left (c \right )}}{\left (a \cos {\left (c \right )} + a\right )^{4}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 233, normalized size = 1.02 \begin {gather*} -\frac {\frac {420 \, {\left (d x + c\right )} {\left (8 \, A - 21 \, B\right )}}{a^{4}} - \frac {840 \, {\left (2 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 9 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 2 \, A \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 7 \, B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{2} a^{4}} + \frac {15 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 15 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 147 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 189 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 805 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 1365 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 5145 \, A a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 11655 \, B a^{24} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{28}}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.31, size = 259, normalized size = 1.13 \begin {gather*} \frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {5\,\left (A-B\right )}{4\,a^4}-\frac {5\,B}{2\,a^4}+\frac {3\,\left (4\,A-6\,B\right )}{4\,a^4}+\frac {3\,\left (5\,A-15\,B\right )}{8\,a^4}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (\frac {A-B}{4\,a^4}+\frac {4\,A-6\,B}{8\,a^4}+\frac {5\,A-15\,B}{24\,a^4}\right )}{d}-\frac {x\,\left (8\,A-21\,B\right )}{2\,a^4}+\frac {\left (2\,A-9\,B\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (2\,A-7\,B\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+2\,a^4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+a^4\right )}+\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (\frac {3\,\left (A-B\right )}{40\,a^4}+\frac {4\,A-6\,B}{40\,a^4}\right )}{d}-\frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (A-B\right )}{56\,a^4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________